<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%@include file="/common/head.jsp" %>

<c:set var="module" value="orderDesigner"/>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
		<form action="${ctx }/admin/orderDesigner/save?id=${n.id }" id="detail-form" class="form-horizontal" method="post">
			<div class="form-group">
                 <label class="col-sm-2 control-label">用户</label>
                 <div class="col-sm-10">
                 	<%-- <input type="text" class="form-control" name="user.id" value="${n.user.id }"> --%>
                 	<input type="hidden" placeholder="用户" id="user-id" name="user.id" value="${n.user.id }" class="form-control">
                 	<input type="text" class="form-control" id="username" name="user.nickName" value="${n.user.nickName }" 
                 		onclick="bring({
						                 	url:'${ctx}/admin/user/list',
						                 	name: 'nickName',
						                 	idInput: 'user-id',
						                 	nameInput: 'username'
						                 	})" />
                 </div>
             </div>	
			<div class="form-group">
                 <label class="col-sm-2 control-label">小区名称</label>
                 <div class="col-sm-10">
                 	<input type="text" class="form-control" name="communityName" value="${n.communityName }">
                 </div>
             </div>	
			<div class="form-group">
                 <label class="col-sm-2 control-label">面积</label>
                 <div class="col-sm-10">
                 	<input type="text" class="form-control" name="area" value="${n.area }">
                 </div>
             </div>	
			<div class="form-group">
                 <label class="col-sm-2 control-label">风格</label>
                 <div class="col-sm-10">
                 	<%-- <input type="text" class="form-control" name="houseStyle.id" value="${n.houseStyle.id }"> --%>
                 	<input type="hidden" id="houseStyle-id" name="houseStyle.id" value="${n.houseStyle.id }" class="form-control">
                 	<input type="text" class="form-control" id="houseStyle-name" name="houseStyle.name" value="${n.houseStyle.name }" 
                 		onclick="bring({
						                 	url:'${ctx}/admin/houseStyle/list',
						                 	name: 'name',
						                 	idInput: 'houseStyle-id',
						                 	nameInput: 'houseStyle-name'
						                 	})" />
                 </div>
             </div>	
			<div class="form-group">
                 <label class="col-sm-2 control-label">户型</label>
                 <div class="col-sm-10">
                 	<%-- <input type="text" class="form-control" name="houseType.id" value="${n.houseType.id }"> --%>
                 	<input type="hidden" id="houseType-id" name="houseType.id" value="${n.houseType.id }" class="form-control">
                 	<input type="text" class="form-control" id="houseType-name" name="houseType.name" value="${n.houseType.name }" 
                 		onclick="bring({
						                 	url:'${ctx}/admin/houseType/list',
						                 	name: 'name',
						                 	idInput: 'houseType-id',
						                 	nameInput: 'houseType-name'
						                 	})" />
                 </div>
             </div>	
			<div class="form-group">
                 <label class="col-sm-2 control-label">预约时间</label>
                 <div class="col-sm-10">
                 	<input type="text" class="form-control" name="orderTime" value="<fmt:formatDate value='${n.orderTime }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: 'YYYY-MM-DD'})">
                 </div>
             </div>	
			<div class="form-group">
                 <label class="col-sm-2 control-label">创建时间</label>
                 <div class="col-sm-10">
                 	<input type="text" class="form-control" name="createTime" value="<fmt:formatDate value='${n.createTime }' pattern='yyyy-MM-dd HH:mm:ss'/>" onclick="laydate({format: 'YYYY-MM-DD hh:mm:ss'})">
                 </div>
             </div>	
        	
		</form>
</div>

<%@include file="/common/foot.jsp" %>

</body>
</html>
